package serveur;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.swing.ImageIcon;

public class TweetPicture extends Tweet implements Serializable {
	
	private ImageIcon image;

	public TweetPicture(String topic, String message, String pseudo, ImageIcon image) {
		super(topic, message, pseudo);
		this.image = image;
	}

	@Override
	public List<Object> displayTweet() {
		List<Object> l = super.displayTweet();
		
		l.add(image);
		
		return l;
	}
	
}
